//
//  WJTagsCollectionCell.m
//  WJBSApp
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJTagsCollectionCell.h"

@implementation WJTagsCollectionCell

-(void)dealloc
{
    [_lable release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.lable = [[WJBaseLable alloc]initWithFrame:CGRectZero dayBgColor:BSWhiteColor nightBgColor:FORBLACKCOLOR dayTextColor:BSGrayColor nightTextColor:BSWhiteColor];
        [self.contentView addSubview:self.lable];
        [_lable release];
    }
    return self;
}

- (void)layoutSubviews
{
    NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:14]};
    CGRect rect = [self.lable.text boundingRectWithSize:CGSizeMake(1000, 40) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    
    self.lable.frame = CGRectMake(0, 0, rect.size.width + 5, 15);
    self.lable.textAlignment = 1;
    self.lable.font = [UIFont systemFontOfSize:14];
}






@end
